package map.spawnStation;

import com.jme.scene.Controller;

import logic.common.player.Player;

public class SpawnCaptureController extends Controller {
	
	private static final long serialVersionUID = 1L;
	
	private SpawnStation station;
	private Player player;
	
	public SpawnCaptureController(Player player) {
		this.player = player;
	}
	
	public void setSpawnStation(SpawnStation station) { this.station = station; }
	
	@Override
	public void update(float time) {
		station.changeCapturePoints(time * 8f, player);
	}
}